﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace NCEdu.Web.leave
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int leaveId=(Convert.ToInt32(strid));
					ShowInfo(leaveId);
				}
			}
		}
		
	private void ShowInfo(int leaveId)
	{
		NCEdu.BLL.leave bll=new NCEdu.BLL.leave();
		NCEdu.Model.leave model=bll.GetModel(leaveId);
		this.lblleaveId.Text=model.leaveId.ToString();
		this.lblstuNo.Text=model.stuNo.ToString();
		this.lbltel.Text=model.tel;
		this.lblstuTitle.Text=model.stuTitle;
		this.lblleaveReason.Text=model.leaveReason;
		this.lbl请假日期.Text=model.请假日期.ToString();
		this.lbl截至日期.Text=model.截至日期.ToString();
		this.lbl请假类型.Text=model.请假类型;

	}


    }
}
